<template>
	<view class="agreement">
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:''
			}
		},
		onLoad(o) {
			console.log(11,o)
			this.$post('communal/getWebconfig',{}).then(res=>{
				uni.hideLoading()
				// console.log(res)
				if (res.code == 0) {
					if(o.type==1){
						this.content = res.data.agreement
						uni.setNavigationBarTitle({
							title:'用户协议'
						})
					}else{
						this.content = res.data.privacy
						uni.setNavigationBarTitle({
							title:'隐私政策'
						})
					}
				}
			})
		},
		methods: {
	
		}
	}
</script>

<style lang="less">
</style>
